package cn.com.xiaoshoujia.activities.dto;

import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @Author: yangrui
 * @Description: site dto接收拼团信息
 * @Date: 上午11:28 2017/7/27
 */
public class ActivitySiteDTO {
    /*--------------------基本信息 start--------------------*/
    @NotEmpty(message = "标题不能为空")
    private String title; //varchar(100) NOT NULL DEFAULT '' COMMENT '拼团标题',
    private Integer cityId; //int(10) NOT NULL DEFAULT '-1' COMMENT '城市ID',
    private String sponsor; //varchar(100) NOT NULL DEFAULT '' COMMENT '主办方名称',
    @NotEmpty(message = "地址不能为空")
    private String address; //varchar(100) NOT NULL DEFAULT '' COMMENT '地址',
    @NotEmpty(message = "电话不能为空")
    private String phone; //varchar(50) NOT NULL DEFAULT '' COMMENT '联系方式',
    private Long picture; //bigint(20) NOT NULL DEFAULT '-1' COMMENT '图片ID',
    private String detail; //bigint(20) NOT NULL DEFAULT '-1' COMMENT '详情',
    private String operationJson; //varchar(500) NOT NULL DEFAULT '' COMMENT '表单信息',
    private String fkCompanyXcode; //varchar(50) NOT NULL DEFAULT '' COMMENT '企业唯一XCODE',
    private Long creatorId; //bigint(20) NOT NULL DEFAULT '-1',
    private String creator; //varchar(50) NOT NULL DEFAULT '',
    private Long mendedId; //bigint(20) NOT NULL DEFAULT '-1',
    private String mender; //varchar(50) NOT NULL,
    /*--------------------基本信息 end--------------------*/
    /*--------------------规则信息 start--------------------*/
    @NotNull(message = "参与人数不能为空")
    private Integer participants; //int(5) NOT NULL DEFAULT '0' COMMENT '参与人数',
    @DecimalMin(value = "0.01", message = "原价费用最少不能小于0.01")
    @NotNull(message = "原价费用不能为空")
    private BigDecimal price; //decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '原始单价',
    @DecimalMin(value = "0.01", message = "优惠费用最少不能小于0.01")
    @NotNull(message = "优惠费用不能为空")
    private BigDecimal discountPrice; //decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '优惠价格',
    @NotNull(message = "时限不能为空")
    private Integer timeLimit; //int(5) NOT NULL DEFAULT '0' COMMENT '时限（小时）',
    @NotEmpty(message = "拼团开始时间不能为空")
    private String startTime; //datetime DEFAULT NULL,
    @NotEmpty(message = "拼团结束时间不能为空")
    private String endTime; //datetime DEFAULT NULL,
    /*--------------------规则信息 end--------------------*/

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getCityId() {
        return cityId;
    }

    public void setCityId(Integer cityId) {
        this.cityId = cityId;
    }

    public String getSponsor() {
        return sponsor;
    }

    public void setSponsor(String sponsor) {
        this.sponsor = sponsor;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Long getPicture() {
        return picture;
    }

    public void setPicture(Long picture) {
        this.picture = picture;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getOperationJson() {
        return operationJson;
    }

    public void setOperationJson(String operationJson) {
        this.operationJson = operationJson;
    }

    public String getFkCompanyXcode() {
        return fkCompanyXcode;
    }

    public void setFkCompanyXcode(String fkCompanyXcode) {
        this.fkCompanyXcode = fkCompanyXcode;
    }

    public Long getCreatorId() {
        return creatorId;
    }

    public void setCreatorId(Long creatorId) {
        this.creatorId = creatorId;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public Long getMendedId() {
        return mendedId;
    }

    public void setMendedId(Long mendedId) {
        this.mendedId = mendedId;
    }

    public String getMender() {
        return mender;
    }

    public void setMender(String mender) {
        this.mender = mender;
    }

    public Integer getParticipants() {
        return participants;
    }

    public void setParticipants(Integer participants) {
        this.participants = participants;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getDiscountPrice() {
        return discountPrice;
    }

    public void setDiscountPrice(BigDecimal discountPrice) {
        this.discountPrice = discountPrice;
    }

    public Integer getTimeLimit() {
        return timeLimit;
    }

    public void setTimeLimit(Integer timeLimit) {
        this.timeLimit = timeLimit;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }
}
